package cn.zhaoyuening.fandamin.utils.page;

/**
 * Created by 赵岳宁 on 2017/5/31.
 */
public class ResponceResult {
    private String status;
    private Object content;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    public static ResponceResult failResult(){
        ResponceResult result = new ResponceResult();
        result.setStatus("fail");
        return result;
    }

    public static ResponceResult successResult(Object content){
        ResponceResult result = new ResponceResult();
        result.setStatus("success");
        result.setContent(content);
        return result;
    }
}
